package module

import com.jleo.BankInfoBuffer
import org.telluriumsource.dsl.DslContext

/**
 * Created by IntelliJ IDEA.
 * User: janexie
 * Date: 2010-12-18
 * Time: 21:41:35
 * To change this template use File | Settings | File Templates.
 */
class BankMainPageModule extends DslContext {
  protected BankInfoBuffer buffer;

  BankMainPageModule(buffer) {
    this.buffer = buffer
  }

  public def getSource() {
    return this.getHtmlSource().replaceAll("<meta.*\">", "").replaceAll("<link.*\">", "").replaceAll("<input.*>", "").replaceAll("<a.*>", "").replaceAll("window.document.location.href.*", "").replaceAll("&nbsp;", "").replaceAll("&", "").replaceAll("<=57", "")
  }
}
